#!/usr/bin/python3
# -* - coding: UTF-8 -* -

import os
import sys
import unittest

from cookieUtils import CookieManager
from selenium_utils.Apgar import Apgar

curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]
sys.path.append(rootPath)

from data import Config
from utils import LogSys


class BaseCase(unittest.TestCase):
    COOKIE_TYPE = False  # 1 从配置文件取，0 从登录接口取

    @classmethod
    def setUpClass(cls):
        cls.driver = Apgar.instance().getDriver()
        pass
    @classmethod
    def tearDownClass(cls):
        LogSys.logInfo('INSTRUMENTATION_STATUS:over')
        cls.driver.__exit__()


